<?PHP $this->_extends('_layouts/manager_layout');?>
<?PHP $this->_block('contents');?>
<style>
.tree ul{}
.tree li{padding:1px 20px; width:200px}
</style>
<h2 class="aa1">支付方式</h2>
<form action="" method="post" >
<table>
	<tr>
		<th width="150"></th>
		<th width="200"></th>
		<th></th>
	</tr>
	<?php foreach($payments as $payment):  
			$c_payment=null;
			if(isset($myPaymentsArr[$payment->payment_id])):
				$c_payment=$myPaymentsArr[$payment->payment_id];
			endif;
			?>
		<tr>
			<td><input type="checkbox" name="payment[<?=$payment->payment_id?>]" value="<?=$payment->payment_id?>" 
			<?php if($c_payment&&$c_payment['status']):?>checked='true'<?php endif;?> ><?=$payment->title?></td>
			<td>
			<table >
			<?php
			 if(count($payment->config)): foreach($payment->config as $k=>$v):   
			 ?>
				<tr><td><?=$v?>:</td><td><input type="text" name="paymentconfig[<?=$payment->payment_id?>][<?=$k?>]" value="<?=$c_payment['config'][$k]?>"  /></td></tr>
				
			<?php endforeach; endif;?> 
			</table></td>
			<td><?=$payment->desc?></td>
		</tr>
	<?php endforeach;?>
</table>
<input type="submit" value="   确定   "  />
</form>
<br style="clear:both">


<?PHP $this->_endblock();?>

